package cn.monkey.family.data.uc.resource;

import cn.monkey.family.data.QueryRequest;
import lombok.Builder;
import lombok.Getter;
import lombok.experimental.Tolerate;

@Getter
@Builder(toBuilder = true)
public class ResourceQueryRequest implements QueryRequest {

    private String name;
    private String parentId;
    private String type;

    @Tolerate
    private ResourceQueryRequest() {
    }


    public ResourceQueryRequest toMenuTypeQueryRequest(){
        return this.toBuilder().type(ResourceType.MENU.getCode()).build();
    }
}
